#!/usr/bin/env python
# encoding: utf-8
# @author: liusir
# @file: demo_01.py
# @time: 2022/11/2 8:36 PM

# 新的第三方库操作：在samples测试第三方库基础代码如何写 -- 封装成函数 -- 调用函数
import configparser
import os

current_path = os.path.dirname(os.path.abspath(__file__))
config_file_path = os.path.join(current_path,'..','conf','local_config.ini')
config = configparser.ConfigParser()
config.read( config_file_path )
value = config.get('default','hosts')
print( value )

from utlis.config_utils import local_config
print( local_config.HOSTS )

